Title: Year 12 / Computer Science / Practical / 11 - Programming / 11.2 - Constructs

Q: Write the pseudocode required to declare an IF statement
[[typebox:Back]]
A: IF condition THEN
  ...
ENDIF

Q: Write the pseudocode required to declare a CASE statement which does something even if none of the cases match
[[typebox:Back]]
A: CASE OF identifier
  value1 : ...
  value2 : ...
  OTHERWISE : ...
ENDCASE

Q: Write the pseudocode required to declare a CASE statement which uses a range for a case
[[typebox:Back]]
A: CASE OF identifier
  value1 TO value2 : ...
  value3 TO value4 : ...
ENDCASE

Q: Write the pseudocode required to declare a count-controlled loop
[[typebox:Back]]
A: FOR identifier <- value1 TO value2
  ...
NEXT identifier

Q: Write the pseudocode required to declare a post-condition loop
[[typebox:Back]]
A: REPEAT
  ...
UNTIL condition

Q: Write the pseudocode required to declare a pre-condition loop
[[typebox:Back]]
A: WHILE condition
  ...
ENDWHILE